/** 商品分类接口模块 */
import axios from "../utils/request"


// 查询分类数据
export const getBannerApi = () => axios({
  url: "/api/bannerlist"
})


// 添加分类数据
export const addBannerApi = bannerForm => axios({
  url: "/api/banneradd",
  method: "POST",
  data: bannerForm
})


// 删除分类数据
export const delBannerApi = id => axios({
  url: "/api/bannerdelete",
  method: "POST",
  data: { id }
})

// 编辑分类数据
export const editBannerApi = bannerForm => axios({
  url: "/api/banneredit",
  method: "POST",
  data: bannerForm
})